include ../config
INCLUDE := ../include
LIB := ../lib
obj := libdet.a
dependence :=det_states.o npd.o

$(obj): $(dependence)
	$(AR) rcs $(obj) $(dependence)
#cp $(obj) $(LIB)
$(dependence):%.o:%.c
	$(CC) -c $< -o $@ -I $(INCLUDE)
#“$<”表示所有的依赖目标集（也就是“config.c sampler.c”），“$@”表示目标集

.PHONY:clean
clean:
	-rm -f *.o *.a
